//
// Created by liule on 2021/8/12.
//

#include "Food.h"

Food::Food(Wall *wall): wall(wall) {

}

void Food::setFond() {

    //srand((unsigned) time(NULL));
    int x = rand()% (wall->getRow() - 2) + 1;
    int y = rand()% (wall->getRow() - 2) + 1;
    wall->changeGameArr(x, y, '#');
}
